import * as THREE from "three"
import controls from "./controls"
import camera from "./camera"
import renderer from "./renderer"
import scene from "./scene"

const clock = new THREE.Clock()
function animate(t) {
  controls.update()
  const time = clock.getElapsedTime()
  requestAnimationFrame(animate)
  // 使用渲染器渲染相机看这个场景的内容渲染出来
  renderer.render(scene, camera)
}

export default animate